<div class="tarefas view">
<h2><?php  echo __('Tarefa');?></h2>
	<p>
		<?php echo $this->Html->link("Voltar", array('action'=>'index', $tarefa['Projetos']['id_projetos']), array('class'=>'btn'));?>
	</p>
	<dl class="dl-horizontal">
		<dt><?php echo __('Projeto'); ?></dt>
		<dd>
			<?php echo $tarefa['Projetos']['nome']; ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Status'); ?></dt>
		<dd>
			<?php echo h($tarefa['Status']['status']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Nome'); ?></dt>
		<dd>
			<?php echo h($tarefa['Tarefa']['nome']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Descricao'); ?></dt>
		<dd>
			<?php echo h($tarefa['Tarefa']['descricao']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Updated'); ?></dt>
		<dd>
			<?php echo h($tarefa['Tarefa']['updated_view']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Criado por'); ?></dt>
		<dd>
			<?php echo h($tarefa['User']['nome']); ?>
			&nbsp;
		</dd>
	</dl>
	<br>
	<?php if($mensagens[0] != false){?>
		<h4>Mensagens</h4>
		<?php foreach($mensagens as $item){?>
		<blockquote>
			<p class="content"><?php echo $item['Mensagem']['mensagem'];?></p>
			<small><?php echo $item['User']['nome'];?> em: <?php echo $item['Mensagem']['created_view'];?></small>
		</blockquote>
		<?php }?>
	<?php }?>
	<?php echo $this->Form->create('Mensagem', array('action'=>'add'));
		echo $this->Form->input('tarefas_id', array('type'=>'hidden', 'value'=>$tarefa['Tarefa']['id_tarefas']));
		echo $this->Form->input('mensagem', array('label'=> 'Nova Mensagem'));
		echo $this->Form->submit('Gravar');
	?>
</div>
